cmake_minimum_required(VERSION 3.5.1)


add_subdirectory(proto)

add_library( monitor_log   monitor_log_buffer.cc  monitor_logger.cc)
target_link_libraries( monitor_log
cyber
cyber::proto
common::proto
common::time
common::message_util
monitor_log_proto

)


add_executable(monitor_log_buffer_test  monitor_log_buffer_test.cc)
target_link_libraries(monitor_log_buffer_test
monitor_log
gtest
gtest_main
)


install(TARGETS monitor_log
        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )


install(TARGETS monitor_log_buffer_test               
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )

